<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<%@ taglib prefix="sjg" uri="/struts-jquery-grid-tags"%>

<script type="text/javascript">
    var rowId = 0;
    $('fbox_othersourceofincomeGrid .ui-reset , #refresh_othersourceofincomeGrid').click(function(){
        $("#othersourceofincomeGrid").jqGrid('setGridParam',{search:false});
        var postData = $("#othersourceofincomeGrid").jqGrid('getGridParam','postData');
        $.extend(postData,{searchField:"",searchString:"",searchOper:""});
        $.extend(postData,{filters:""});
        $("#othersourceofincomeGrid").trigger("reloadGrid");
    });

    $.subscribe('searchothersourceofincomeInfoGrid', function(event,data) {
        $("#othersourceofincomeGrid").jqGrid('searchGrid', {closeAfterSearch:true,closeOnEscape:true,sopt:['eq'],caption:"Search othersourceofincome Info"} );
    });
    
    $.subscribe('othersourceofincomeGridComplete',function(event,data){
        $( "#othersourceofincomeGrid_search" ).button( "option", "disabled", false );
    });

</script>
<div class="gridOptsContainer">
    <sj:submit button="true" cssStyle="font-size:14px;" disabled="true" id="othersourceofincomeGrid_search" onClickTopics="searchothersourceofincomeInfoGrid" value="Search othersourceofincome"/>
</div>
<s:url id="remoteurl" action="grid-othersourceofincome"/>

<sjg:grid
    id="othersourceofincomeGrid"
    caption="Cashmate othersourceofincome"
    cellEdit="true"
    dataType="json"
    href="%{remoteurl}"
    gridModel="gridModel"
    pagerButtons="true"
    pagerInput="true"
    rowList="15,30,50"
    rowNum="15"
    loadingText="Requesting Data..."
    width="970"
    shrinkToFit="true"
    pager="true"
    hoverrows="true"
    rownumbers="true"
    autoencode="true"
    viewrecords="true"
    navigator="true"
    navigatorAdd="false"
    navigatorDelete="false"
    navigatorEdit="false"
    navigatorSearch="true"
    navigatorSearchOptions="{closeAfterSearch:true,closeOnEscape:true,sopt:['eq'],caption:'Search othersourceofincome'}"
    navigatorView="true"
    onGridCompleteTopics="othersourceofincomeGridComplete"
    >

    <sjg:gridColumn name="otherincomeid"
                    index="otherincomeid"
                    title="Other Source of Income ID"
                    sortable="false"
                    key="true"
                    hidden="true"
                    />

    <sjg:gridColumn name="type"
                    index="type"
                    title="Type"
                    sortable="true"
                    align="center"
                    />

    <sjg:gridColumn name="employer"
                    index="employer"
                    title="Employer"
                    sortable="true"
                    align="center"
                    />

    <sjg:gridColumn name="address"
                    index="address"
                    title="Address"
                    sortable="true"
                    align="center"
                    />


    <sjg:gridColumn name="position"
                    index="position"
                    title="Position"
                    sortable="true"
                    align="center"
                    />

    <sjg:gridColumn name="income"
                    index="income"
                    title="Income"
                    sortable="true"
                    align="center"
                    />


    <sjg:gridColumn name="creditinvestigations.creditinvid"
                    index="creditinvestigations.creditinvid"
                    title="Credit Investigations ID"
                    sortable="true"
                    align="center"
                    />
</sjg:grid>